/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package cc.altius.service.impl;

import cc.altius.dao.PartnerDao;
import cc.altius.model.Partner;
import cc.altius.model.PartnerDetail;
import cc.altius.model.PartnerType;
import cc.altius.service.PartnerService;
import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 *
 * @author jitendra
 */
@Service
public class PartnerServiceImpl implements PartnerService {

    @Autowired
    PartnerDao partnerDao;

    @Override
    public List<PartnerDetail> getPartnerDetailList() {
        return this.partnerDao.getPartnerDetailList();
    }

    @Override
    public List<PartnerType> getPartnerTypeList() {
        return this.partnerDao.getPartnerTypeList();
    }

    @Override
    public int addPartnerDetail(PartnerDetail partnerDetail) {
        return this.partnerDao.addPartnerDetail(partnerDetail);
    }

    @Override
    public int addPartner(Partner partner) {
        return this.partnerDao.addPartner(partner);
    }

    @Override
    public List<Partner> getPartnerList(int centerId, int partnerTypeId) {
        return this.partnerDao.getPartnerList(centerId, partnerTypeId);
    }

    @Override
    public Partner getPartnerById(int partnerId) {
        return this.partnerDao.getPartnerById(partnerId);
    }

    @Override
    public int updatePartner(Partner partner) {
        return this.partnerDao.updatePartner(partner);
    }

    @Override
    public PartnerDetail getPartnerDetailById(int partnerDetailId) {
        return this.partnerDao.getPartnerDetailById(partnerDetailId);
    }

    @Override
    public int updatePartnerDetail(PartnerDetail partnerDetail) {
        return this.partnerDao.updatePartnerDetail(partnerDetail);
    }
}
